package entity;

import java.sql.Timestamp;
import java.util.List;

public class PingLun {
    private int pid;
    private int wid;
    private User puid;
    private int buid;
    private Timestamp pdate;
    private String ptext;
    private int pfuid;
    private List<PingLun> pid2;//二级评论id

    @Override
    public String toString() {
        return "PingLun{" +
                "pid=" + pid +
                ", wid=" + wid +
                ", puid=" + puid +
                ", buid=" + buid +
                ", pdate=" + pdate +
                ", ptext='" + ptext + '\'' +
                ", pfuid=" + pfuid +
                ", pid2=" + pid2 +
                '}';
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getWid() {
        return wid;
    }

    public void setWid(int wid) {
        this.wid = wid;
    }

    public User getPuid() {
        return puid;
    }

    public void setPuid(User puid) {
        this.puid = puid;
    }

    public int getBuid() {
        return buid;
    }

    public void setBuid(int buid) {
        this.buid = buid;
    }

    public Timestamp getPdate() {
        return pdate;
    }

    public void setPdate(Timestamp pdate) {
        this.pdate = pdate;
    }

    public String getPtext() {
        return ptext;
    }

    public void setPtext(String ptext) {
        this.ptext = ptext;
    }

    public int getPfuid() {
        return pfuid;
    }

    public void setPfuid(int pfuid) {
        this.pfuid = pfuid;
    }

    public List<PingLun> getPid2() {
        return pid2;
    }

    public void setPid2(List<PingLun> pid2) {
        this.pid2 = pid2;
    }
}
